package io.hepu.robotize.service;


import io.hepu.robotize.base.IBaseService;
import io.hepu.robotize.model.Permission;

import java.util.List;

public interface IPermissionService extends IBaseService<Permission, String> {
    /**
     * 根据用户ID查询用户权限集合
     *
     * @param userId 用户id
     * @return
     */
    List<Permission> findByUserId(String userId);

    List<Permission> findByParentId(String parentId);
}
